﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using CKEditor.NET;
using HaiPhuongDBTableAdapters;

public partial class Controls_SoanThaoBaiViet : System.Web.UI.UserControl
{
    public CKEditorControl Editor
    {
        get { return editor; }
    }

    public TextBox TieuDe
    {
        get { return tieude; }
    }

    public FileUpload HinhAnh
    {
        get { return hinhanh; }
    }

    public DropDownList DanhMuc
    {
        get { return danhmuc; }
    }

    public Label ThongBao
    {
        get { return lbthongbao; }
    }


    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    protected void danhmuc_Init(object sender, EventArgs e)
    {
        DanhMucTableAdapter DanhMuc = new DanhMucTableAdapter();
        danhmuc.DataSource = DanhMuc.LayDanhSachDanhMuc();
        danhmuc.DataTextField = "TenDanhMuc";
        danhmuc.DataValueField = "MaDanhMuc";
        danhmuc.DataBind();        
    }
}
